package com.gua.common.request;

import com.gua.common.response.AjaxResult;

/**
 * 
 * @author huangjj
 *
 */
public class BaseController {

	/**
	 * 成功
	 * 
	 * @return
	 */
	public AjaxResult<Void> success() {
		return new AjaxResult<>().success();
	}
	
	/**
	 * 失败
	 * 
	 * @return
	 */
	public AjaxResult<Void> fail() {
		return new AjaxResult<>().fail();
	}
	
	/**
	 * 成功
	 * 
	 * @return
	 */
	public <T> AjaxResult<T> success(T data) {
		AjaxResult<T> result = new AjaxResult<>(data);
		return result;
	}
	
}
